﻿using BootstrapBlazor.Components;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Dependencies;
namespace BPM.Web.Shared.Service;

[Scoped(typeof(ISysMachineService))]
public class SysMachineService : BaseService, ISysMachineService
{
    private readonly IMachineClient _machineClient;
    public SysMachineService(IMachineClient client, ToastService toast) : base(toast)
        => _machineClient = client;

    public Task<MachineUseOutput?> UseAsync() => QueryAsync(_machineClient.UseAsync());
    public Task<MachineBaseOutput?> BaseAsync() => QueryAsync(_machineClient.BaseAsync());
    public Task<MachineNetOutput?> NetworkAsync() => QueryAsync(_machineClient.NetworkAsync());
}

